<?php
namespace app\work\logic;

class CloudLogic extends BaseLogic {

    /**
     * 获取云盘查询条件
     * @param $parentid
     * @param $keywords
     * @return array
     */
    public function get_search_cloud_maps($parentid,$keywords){
        $maps = [];

        $maps[] = ['parentid','=',$parentid];
        if(!empty($keywords)){
            $maps[] = ['name','like','%' . $keywords . '%'];
        }
        return $maps;
    }
}